9.1 Windowing Queries 9.2 Interval Trees
نویسندگان
چکیده
Windowing queries answer important questions. Primarily, windowing queries answer information involving a given line segment and a windowing region. Given a set of n line segments S and a query window W := [x : x ]x[y : y ], windowing queries answer which segments in S intersect W. The primary difference between windowing queries and range queries is the data. While range queries are associated with points, windowing queries are associated with line segments, polygons , curves, etc. Typically, windowing queries exist in 2-or 3-dimensions, whereas range queries deal with queries in higher-dimensional spaces. In the examples below, we will visit three types of windowing queries, two of which consider the specific case regarding axis-aligned segments, and one which analyzes arbitrarily oriented line segments. In every structure, all segments are assumed to be non-intersecting. Interval trees [9.1] present suitable windowing queries for axis-parallel line segments and an axis-parallel query window. Given the set S of n axis-parallel line segments and an axis-parallel query window W := [x : x ] x [y : y ] the segments S intersecting W can be reported efficiently. Intersecting segments in S are defined by having at least one endpoint inside W. There different cases which satisfy this condition include: the segment can lie entirely inside W , it can the boundary of W once, twice, or partially overlap the boundary of W. In the cases where one endpoint lies inside W , we can use a 2-dimensional range query, which uses O(n log n) storage and can be answered in O(log 2 n + k) time. The use of fractional cascading can reduce query time to O(log n + k). In the other cases, where a segment in S crosses the boundary of W twice or lies on the edge of a boundary, another approach must be used. This is where the interval tree is needed.
منابع مشابه
SPATIAL TREES : A FAST ACCESS METHOD FOR URSTRUcrtJRED GRAPHICAL DATA
A spatial tree is a data str uct ure for organizing graphical elements into a tree using their extents so as to optimized geometric queries on the database. Algorithms . are presented for insertion and deletion. Queries on 20 spatial trees are modeled as simple rectangles for windowing purposes. Query algorithms for rays and convex polyhedra are presented for 30 spatial trees. It is shown how a...
متن کاملMV3R-Tree: A Spatio-Temporal Access Method for Timestamp and Interval Queries
Among the various types of spatio-temporal queries, the most common ones involve window queries in time. In particular, timestamp (or timeslice) queries retrieve all objects that intersect a window at a specific timestamp. Interval queries include multiple (usually consecutive) timestamps. Although several indexes have been developed for either type, currently there does not exist a structure t...
متن کاملA Vhdl-93 Hardware Description Browser
This paper describes the design and implementation of the VHDL-93 Hardware Description Browser, which is a tool for the intelligent retrieval of information from VHDL designs. The Browser consists of two UNIX processes: a TCL/TK Graphical User Interface and a Prolog search engine. The GUI elicits queries from the user and submits them to the Prolog search engine via a two-way communication pipe...
متن کاملIndexing Valid Time Intervals
To support temporal operators and to increase the efficiency of temporal queries, indexing based on temporal attributes is required. We consider the problem of indexing the temporal dimension in valid time databases. We assume that the temporal information of data objects are represented as valid time intervals that have to be managed dynamically by an efficient index structure. Unlike the time...
متن کاملEfficient Historical R-trees
The Historical R-tree is a spatio-temporal access method aimed at the retrieval of window queries in the past. The concept behind the method is to keep an R-tree for each timestamp in history, but allow consecutive trees to share branches when the underlying objects do not change. New branches are only created to accommodate updates from the previous timestamp. Although existing implementations...
متن کامل